#ifndef PANEL_LOG_H_INCLUDED
#define PANEL_LOG_H_INCLUDED

#include <wx/panel.h>
#include <wx/textctrl.h>
#include <wx/log.h>

class PanelLog : public wxPanel
{
	wxTextCtrl* m_editLog;
	
public:
	PanelLog(wxWindow* parent)
	: wxPanel(parent)
	{
		m_editLog = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE);
		wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
		sizer->Add(m_editLog, 1, wxALL|wxEXPAND);
		SetSizer(sizer);
		Layout();
		
		wxLog::SetActiveTarget(new wxLogTextCtrl(m_editLog) );
	}
};


#endif // PANEL_LOG_H_INCLUDED
